package com.itheima.stock.api;

import com.itheima.stock.dto.LoginDTO;
import com.itheima.stock.response.ResponseResult;
import com.itheima.stock.vo.CaptchaVO;
import com.itheima.stock.vo.LoginVO;
import org.springframework.web.bind.annotation.*;

/**
 * @Author:gzc
 * @Date: 2025/10/23 14:57
 * @Description:
 */
@RequestMapping("/api")
public interface UserControllerAPI {

    /**
     * 环境测试接口
     *
     * @return String
     */
    @GetMapping(path = "/user/test")
    String getName(@RequestParam( value = "name") String name);


    /**
     * 生成验证码
     * @return
     */
    @GetMapping("/captcha")
    ResponseResult<CaptchaVO> generateCaptcha();


    @PostMapping("/login")
    ResponseResult<LoginVO> login(@RequestBody LoginDTO loginDTO);
}
